git author 設定


Posted by MoreCoke on 2020-08-19

在用不同電腦操作時常遇到的問題就是 git 送出 commit 時的使用者問題

git config user.name 名字
git config user.email 郵件
以上設定都只是區域設定,這些設定只會保留在當前專案部會改到全域的設定

檢查全域設定

git config --global user.name
git config --global user.email

在 commit 時設定使用者

git commit --author="MoreCoke " -m "my commit"

在這專案設定一次就好,之後的 commit 會以設定的 author 為主。


#Git







Related Posts

[論文筆記] Seeing Out of tHe bOx - End-to-End Pre-training for Vision-Language Representation Learning

[論文筆記] Seeing Out of tHe bOx - End-to-End Pre-training for Vision-Language Representation Learning

[BE201] 後端中階:middleware (上)

[BE201] 後端中階:middleware (上)

你是不是也被這個網路現象愚弄了?揭露發錯答案背後的科學真相!

你是不是也被這個網路現象愚弄了?揭露發錯答案背後的科學真相!


Comments